﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OrderingPlatform.DalService.CategoryManage;
using OrderingPlatform.MvcExtension;

namespace OrderingPlatform.BllService.CategoryService
{
   public class DictConfigService
    {
       public static List<KeyValuePair<string, string>> GetDict(string category, string name)
       {
           try
           {
               var list = new DictConfigDal().GetDict(category, name);
               return list;
           }
           catch (Exception)
           {
               
               return new List<KeyValuePair<string, string>>();
           }
       }
       public static List<KeyValuePair<string, string>> GetDictType()
       {
           try
           {
               var list = new List<KeyValuePair<string, string>> { new KeyValuePair<string, string>(ConstLibrary.ProductSeat, ConstLibrary.ProductSeat), new KeyValuePair<string, string>(ConstLibrary.ProductBillfare, ConstLibrary.ProductBillfare) };
               return list;
           }
           catch (Exception)
           {

               return new List<KeyValuePair<string, string>>();
           }
       }
    }
}
